package com.wd.live.tool.socket.wsmanager

/**
 * @Title:
 * @ClassName: com.wd.base.utils.socket.wsmanager.WsStatus.java
 * @author: lowrance
 * @date:  2022/9/21 18:01
 * @Description:    WebSocket的状态监听
 */
object WsStatus {
    const val CONNECTED = 1
    const val CONNECTING = 0
    const val RECONNECT = 2
    const val DISCONNECTED = -1

    internal object CODE {
        const val NORMAL_CLOSE = 1000
        const val ABNORMAL_CLOSE = 1001
    }

    internal object TIP {
        const val NORMAL_CLOSE = "normal close"
        const val ABNORMAL_CLOSE = "abnormal close"
    }
}